package com.lening.organization.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lening.organization.dto.PeopleDTO;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import java.io.Serializable;

@Getter
@Setter
@TableName("people")
public class People implements Serializable {
    @TableId(type = IdType.ASSIGN_ID)
    @Column(name = "编号")
    private Integer id;
    @Column(name = "姓名")
    private String name;
    @Column(name = "年龄")
    private Integer sex;
    @Column(name = "电话号码")
    private String phone;
    @Column(name = "状态")
    private Integer state;
    @Column(name = "外键")
    private Integer departmentId;
    @TableField(exist = false)
    private String dname;
    @TableField(exist = false)
    private String principal;
    @TableField(exist = false)
    private String rname;
    private Department department;
}
